import com.example.library.Book;
import com.example.library.BookInterface;

public class Main {
    public static void main(String[] args){
        Book book = new Book();
        book.setBookInfo("JAVA核心技术","王佳丽","20233011021");
        BookInterface bookInterface = (BookInterface) book;
        System.out.println("图书名称:"+bookInterface.getnaMe());
        System.out.println("图书作者"+bookInterface.getAuthor());
        System.out.println("图书编号"+bookInterface.getisBn());
    }
}

